/*
 * taken from
 * http://www.puttputt.ca/?p=528
 */ 
 
(function ($) { 
$.fn.kshide = function() {
  return this.each(function() {
  var obj = $(this);
  var link = obj.children("a");
  var list = obj.children("ul");
    list.hide();
    link.toggle(
  function() {
    $(list).show("fast");
  },
  function() {
    $(list).hide("fast");
  });
  });
}
}(jQuery));

(function ($) {
  $(document).ready(function(){
    $('.tog').kshide()
  });
}(jQuery));


/*
 *replace value of link for cursos in homepage block 
 */
(function ($) {
  $(document).ready(function(){
    $('.front .view-curso .more-link a').attr('href', 'cursos/todos');
  });
}(jQuery));
